/*
 * nume: client-to-client-thread-server.h
 * autor: ~D
 * descriere: thread-ul pe care il creaza un client cand se un alt client se conecteaza la el
 * tabela de modificarei
 *   12 iunie 2007 - ~D - prima versiune
 */


#ifndef CLIENT_TO_CLIENT_THREAD_SERVER_H__
#define CLIENT_TO_CLIENT_THREAD_SERVER_H__

#include <QThread>
#include <QTcpSocket>

class ClientToClientThreadServer : public QThread
{
    Q_OBJECT

public:
    ClientToClientThreadServer(int socketDescriptor, const QString &fortune, QObject *parent);

    void run();

signals:
    void error(QTcpSocket::SocketError socketError);

private:
    int socketDescriptor;
    QString text;
};

#endif
